<%--
  Created by IntelliJ IDEA.
  User: 田同学
  Date: 2022/1/10
  Time: 10:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--
Created by IntelliJ IDEA.
User: 田同学
Date: 2022/1/7
Time: 16:27
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<%--产品档案查询--%>
<body>
<br><br>
<div style="position: fixed; width: 100%;height:400px;background-color: #999d9d">
    <span><label style="color: #222222">档案更改</label></span>
    <br>
    <div class="container" style="position: fixed;left: 50%">
        <div id="div_01"></div>

        <form class="form-inline" id="form_bar">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <label for="ytu01">请选择产品用途类型</label>: <select type="text" id="ytu01" style="width: 300px" class="form-control" >
            <option value="未选择">---请选择用途类型---</option>
            <option value="Y001-1">商品</option>
            <option value="Y001-2">物料</option>
        </select>
            <br><br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <label for="Iselect01">I&nbsp;级分类：</label><select id="Iselect01"  class="form-control"style="width: 300px">
            <option value="未选">---请选择I级分类---</option>

        </select><br><br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <label >II&nbsp;级分类：</label><select id="IIselect01" class="form-control "style="width: 300px">
            <option value="">---请选择II级分类---</option>
        </select><br><br>

            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <label >III&nbsp;级分类：</label><select id="IIIselect01" class="form-control "style="width: 300px">
            <option value="">---请选择III级分类---</option>
        </select><br><br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            请输入建档日期：<input type="date">到 <input type="date">
            <br><br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="button" id="qur" style="width: 500px" value="查询" data-toggle='modal' data-target='#myModal03' class="btn btn-success">
        </form>
    </div>
</div>


<!-- 模态框（Modal） -->
<div  class="modal fade" id="myModal03" tabindex="-1" role="dialog" aria-labelledby="myModalLabel03" aria-hidden="true">
    <div class="modal-dialog"  style="width: 80%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel03">产品设计--产品档案管理--产品档案更改</h4>
            </div>
            <div class="modal-body" id="div05">
                <div>
                    <table id="flan">

                    </table>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!-- 模态框 -->
<div  class="modal fade" id="myModal04" tabindex="-1" role="dialog" aria-labelledby="myModalLabel05" aria-hidden="true">
    <div class="modal-dialog"  style="width: 80%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel05">产品设计--产品档案管理--产品档案变更</h4>
            </div>
            <div class="modal-body" id="div06">
                <form id="fo_rm">
                    <div class="container">
                        <div style="width: 100%;height: 900px;border: #71daec solid;" >

                                <div style="width: 100%;height: 5%;background-color: #71daec"><label style="color: #ffffff;margin: 8px" >主信息</label>
                                    <b> <span id="span03" style="position: relative;left: 850px"></span></b>
                                </div>
                                <!--主信息-->
                                <div class="row" id="div01">
                                    <br>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label for="T_name">产品名称：</label><input disabled type="text" id="T_name" required="true" maxlength="20" minlength="1"  style="width: 400px" class="form-control" placeholder="请输入产品名称" >
                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label for="Y_name">制造商：</label><input id="Y_name" type="text" style="width: 400px" class="form-control" placeholder="请输入制造商" >
                                    </div>
                                    <br><br><br>
                                    <div class="row">
                                        <div class="col-md-6 form-inline">
                                            &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label for="FIRST_01">I&nbsp;级分类：</label><select  required="true"  id="FIRST_01"  class="form-control "style="width: 300px">
                                            <option  value="0">---请选择I级分类---</option>
                                        </select>
                                        </div>
                                        <div class="col-md-6 form-inline">
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >II&nbsp;级分类：</label><select id="FIRST_02"  required="true" class="form-control "style="width: 300px">
                                            <option value="0">---请选择II级分类---</option>
                                        </select>
                                        </div>
                                    </div>
                                    <br>
                                    <div class="row">
                                        <div class="col-md-6 form-inline">
                                            &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >III&nbsp;级分类：</label><select id="FIRST_03" required="true" class="form-control "style="width: 300px">
                                            <option value="0">---请选择III级分类---</option>
                                        </select>
                                        </div>
                                        <div class="col-md-6 form-inline">
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >产品简介：</label><input name="productNick" type="text" class="form-control" id="t_Nick" placeholder="产品简介" style="width: 300px">
                                        </div>
                                    </div>
                                    <br>
                                    <div class="row">
                                        <div class="col-md-6 form-inline">
                                            &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label>用途类型：</label><input placeholder="用途类型" disabled class="form-control" id="type_Y" style="width: 300px">
                                        </input>
                                        </div>
                                        <div class="col-md-6 form-inline">
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >档次级别：</label><select class="form-control " id="CLA_SSD" style="width: 300px">
                                            <option value="0">---请选择档次级别---</option>
                                            <option value="D001-1">高档</option>
                                            <option value="D001-2">中档</option>
                                            <option value="D001-3">低档</option>
                                        </select>
                                        </div>
                                    </div>
                                    <br>
                                    <div class="row">
                                        <div class="col-md-6 form-inline">
                                            &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >计量单位：</label><input type="text" name="personalUnit" id="l_Unit" class="form-control" placeholder="请输入计量单位" style="width: 300px">
                                        </div>
                                        <div class="col-md-6 form-inline">
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >计量值：</label><input id="l_Value" type="text" name="personalValue" class="form-control" placeholder="请输入计量值" style="width: 300px">
                                        </div>
                                    </div>
                                    <br>
                                    <div class="row">
                                        <div class="col-md-6 form-inline">
                                            &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >市场单价(元)：</label><input disabled id="l_Price" type="number" class="form-control" required="true"  placeholder="请输入市场单价" style="width: 300px">
                                        </div>
                                        <div class="col-md-6 form-inline">
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >计划成本单价：</label><input disabled id="c_Price" type="number" class="form-control" required="true" placeholder="请输入计划成本单价" style="width: 300px">
                                        </div>
                                    </div>
                                    <br>
                                    <div class="row">
                                        <div class="col-md-6 form-inline">
                                            &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >成本单价：</label><input disabled id="REAL_Price" type="number" class="form-control" required="true"  placeholder="请输入市场单价" style="width: 300px">
                                        </div>

                                    </div>
                                </div>
                                <br>
                                <div style="width: 100%;height: 5%;background-color: #71daec"><label style="color: #ffffff;margin: 8px" >动态信息</label></div>
                                <!--辅助信息-->
                                <div class="row">
                                    <br>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >保修期：</label><input id="w_ty" name="warranty"  type="text" style="width: 400px" class="form-control" placeholder="请输入保修日期" >
                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >替代品名称：</label><input id="win_Name"  name="twinName" type="text" style="width: 400px" class="form-control" placeholder="请输入替代品名称" >
                                    </div>
                                    <br><br><br>
                                    <div class="row">
                                        <div class="col-md-6 form-inline">
                                            &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >替代品编号：</label><input id="tw_Id" name="twinId" type="text" style="width: 400px" class="form-control" placeholder="请输入替代品名称" >
                                        </div>
                                        <div class="col-md-6 form-inline">
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >生命周期(年)：</label><input id="li_ycle" name="lifecycle" type="text" style="width: 400px" class="form-control" placeholder="请输入生命周期日期" >
                                        </div>
                                    </div>
                                    <br>
                                    <div class="row">
                                        <div class="col-md-6 form-inline">
                                            &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >单位：</label><input id="am_Unit" name="amountUnit" type="text" class="form-control" placeholder="请输入单位" style="width: 300px">
                                        </div>

                                    </div>
                                    <br>
                                    <div class="row">
                                        <div class="col-md-6 form-inline">
                                            &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label  style="float: left;line-height: 72px;position: relative;left: 60px">供应商集合：</label>
                                            <textarea style="width: 300px;padding-bottom: 40px" id="pr_Group" name="providerGroup"></textarea>
                                        </div>
                                        <div class="col-md-6 form-inline">
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label style="float: left;line-height: 72px;position: relative;left: 54px">产品描述：</label>
                                            <textarea style="width: 300px;padding-bottom: 40px" id="pr_Describe" name="productDescribe"></textarea>
                                            </select>
                                        </div>
                                    </div>
                                    <br>
                                    <div class="row">
                                        <div class="col-md-6 form-inline">
                                            &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                                            <label >产品经理：</label><select id="RESPO_PERSON" class="form-control "style="width: 300px">
                                            <option value="0">---请选择产品经理---</option>
                                            <option value="哈皮">哈皮</option>
                                            <option value="沟沟">沟沟</option>
                                             </select>
                                        </div>
                                    </div>
                                    <br>
                                    <div class="row">
                                        <div class="col-md-6 form-inline">
                                            &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >变更人：</label><input id="rei_d" name="changer" disabled type="text" class="form-control" placeholder="请输入登记人姓名" style="width: 300px">
                                        </div>
                                        <div class="col-md-6 form-inline">
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <label >变更时间：</label><input type="text" id="date03" class="form-control" value="2021-12-30 08:52:12"  disabled style="width: 300px">
                                        </div>
                                    </div>

                                </div>
                                <br><br>
                                    <div class="row">
                                        <div class="col-md-9" style="position: relative;left: 150px">
                                            <input type="submit"  class="btn btn-success btn-block"  value="提交" >
                                        </div>
                                </div>

                        </div>
                    </div>
                </form>
            </div>
                </div>
            </div>

        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<input type="hidden" id="hiddeid">
<input type="hidden" id="file_ch">



<!-- 模态框 -->
<div  class="modal fade" id="myModal05" tabindex="-1" role="dialog" aria-labelledby="myModalLabel_02" aria-hidden="true">
    <div class="modal-dialog"  style="width: 80%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel_02">产品设计--产品档案管理--产品档案更改</h4>
            </div>
            <div class="modal-body" id="div010">
                <form>
                    <div class="container">
                        <div style="width: 100%;height: 1000px;border: #71daec solid;" >

                            <div style="width: 100%;height: 5%;background-color: #71daec"><label style="color: #ffffff;margin: 8px" >主信息</label>
                                <b> <span id="span0_4" style="position: relative;left: 850px"></span></b>
                            </div>
                            <!--主信息-->
                            <div class="row">
                                <br>
                                <div class="col-md-6 form-inline">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <label for="Tname">产品名称：</label><input disabled type="text" id="Tname" required="true" maxlength="20" minlength="1"  style="width: 400px" class="form-control"  >
                                </div>
                                <div class="col-md-6 form-inline">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <label for="Yname">制造商：</label><input disabled id="Yname" type="text" style="width: 400px" class="form-control"  >
                                </div>
                                <br><br><br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label for="FIRST01">I&nbsp;级分类：</label>
                                        <input  required="true" disabled  id="FIRST01" type="text"   class="form-control "style="width: 300px">

                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >II&nbsp;级分类：</label><input disabled id="FIRST02" type="text"  required="true" class="form-control "style="width: 300px">

                                    </div>
                                </div>
                                <br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >III&nbsp;级分类：</label><input disabled id="FIRST03" required="true" class="form-control "style="width: 300px">

                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >产品简介：</label><input disabled name="productNick" type="text" class="form-control" id="tNick"  style="width: 300px">
                                    </div>
                                </div>
                                <br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label>用途类型：</label><input placeholder="用途类型" disabled class="form-control" id="typeY" style="width: 300px">
                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >档次级别：</label><input class="form-control" type="text"  disabled id="CLASSD" style="width: 300px">

                                    </div>
                                </div>
                                <br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >计量单位：</label><input type="text" name="personalUnit" id="lUnit" disabled class="form-control"  style="width: 300px">
                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >计量值：</label><input id="lValue" disabled type="text" name="personalValue" class="form-control"  style="width: 300px">
                                    </div>
                                </div>
                                <br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >市场单价(元)：</label><input disabled id="lPrice" type="number" class="form-control" required="true"   style="width: 300px">
                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >计划成本单价：</label><input disabled id="cPrice" type="number" class="form-control" required="true"  style="width: 300px">
                                    </div>
                                </div>
                                <br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >成本单价：</label><input disabled id="REALPrice" type="number" class="form-control" required="true"   style="width: 300px">
                                    </div>

                                </div>
                            </div>
                            <br>
                            <div style="width: 100%;height: 5%;background-color: #71daec"><label style="color: #ffffff;margin: 8px" >动态信息</label></div>
                            <!--辅助信息-->
                            <div class="row">
                                <br>
                                <div class="col-md-6 form-inline">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <label >保修期：</label><input id="wty" disabled name="warranty"  type="text" style="width: 400px" class="form-control"  >
                                </div>
                                <div class="col-md-6 form-inline">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <label >替代品名称：</label><input id="winName" disabled  name="twinName" type="text" style="width: 400px" class="form-control"  >
                                </div>
                                <br><br><br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >替代品编号：</label><input id="twId" disabled name="twinId" type="text" style="width: 400px" class="form-control" >
                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >生命周期(年)：</label><input id="liycle" disabled name="lifecycle" type="text" style="width: 400px" class="form-control"  >
                                    </div>
                                </div>
                                <br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >单位：</label><input id="amUnit" disabled name="amountUnit" type="text" class="form-control" " style="width: 300px">
                                    </div>

                                </div>
                                <br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label  style="float: left;line-height: 72px;position: relative;left: 60px">供应商集合：</label>
                                        <textarea style="width: 300px;padding-bottom: 40px" id="prGroup" disabled name="providerGroup"></textarea>
                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label style="float: left;line-height: 72px;position: relative;left: 54px">产品描述：</label>
                                        <textarea style="width: 300px;padding-bottom: 40px" id="prDescribe" disabled name="productDescribe"></textarea>
                                        </select>
                                    </div>
                                </div>
                                <br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                                        <label >产品经理：</label><input id="RESPOPERSON" disabled class="form-control "style="width: 300px">
                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                                        <label >累计变更次数：</label><input id="fileChangeAmount" disabled class="form-control "style="width: 300px">
                                    </div>
                                </div>
                                <br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >变更人：</label><input id="reid" name="changer" disabled type="text" class="form-control"  style="width: 300px">
                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >审核时间：</label><input type="text" id="date_03" class="form-control"  disabled style="width: 300px">
                                    </div>
                                </div>
                                <br>
                                <div class="row">
                                    <div class="col-md-6 form-inline">
                                        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >最近变更时间：</label><input id="zjdate" disabled type="text" class="form-control"  style="width: 300px">
                                    </div>
                                    <div class="col-md-6 form-inline">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label >建档时间：</label><input type="text" id="jddate" class="form-control"  disabled style="width: 300px">
                                    </div>
                                </div>

                            </div>

                        </div>
                    </div>
                </form>
            </div>
                </div>
            </div>

        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
<%--</div>--%>
<script>
    //$("#querybyCHECK_TAG").hide()
    //$("#div001").hide()admin
    var params = {
        url: "${pageContext.request.contextPath}/querybyAlldfile.action",
        method: 'GET',                      //请求方式（*）
        toolbar: '#div_01',              //工具按钮用哪个容器
        striped: true,                      //是否显示行间隔色
        cache: false,                       //是否使用缓存，默认为true，所以一般情况下需要设置一下这个属性（*）
        pagination: true,                   //是否显示分页（*）
        sortable: true,                     //是否启用排序
        sortOrder: "asc",                   //排序方式
        sidePagination: "server",           //分页方式：client客户端分页，server服务端分页（*）
        pageNumber: 1,                      //初始化加载第一页，默认第一页,并记录
        pageSize: 5,                     //每页的记录行数（*）
        pageList: [5, 10, 25, 50, 100],        //可供选择的每页的行数（*）
        search: false,                      //是否显示表格搜索
        strictSearch: true,
        showColumns: true,                  //是否显示所有的列（选择显示的列）
        showRefresh: true,                  //是否显示刷新按钮
        minimumCountColumns: 2,             //最少允许的列数
        clickToSelect: true,                //是否启用点击选中行
        height: 500,                      //行高，如果没有设置height属性，表格自动根据记录条数觉得表格高度
        uniqueId: "id",                     //每一行的唯一标识，一般为主键列
        showToggle: true,                   //是否显示详细视图和列表视图的切换按钮
        cardView: false,                    //是否显示详细视图
        detailView: false,                  //是否显示父子表
        //传递额外的查询用的参数
        queryParams: function (params) {
            //这里的键的名字和控制器的变量名必须一直，这边改动，控制器也需要改成一样的
            var I=$("#Iselect01").val();
            var temp = {
                pagesize: params.limit,     //页面大小
                pageno: (params.offset / params.limit) + 1,   //页码
                //查询条件
                type: $("#ytu01").val(),
                firstKindId:I.substring(0,3),
                secondKindName:$("#IIselect01 option:selected").text(),
                thirdKindName:$("#IIIselect01 option:selected").text()
            };
            return temp;
        },
        columns: [
            // {
            //     title: "全选",
            //     field: "",
            //     checkbox:true
            // },
            {
                title: "产品编号",
                field: "productId",
                formatter:function (value,row,index) {
                    return"<a data-toggle='modal' onclick='aclick("+row.id+")' data-target='#myModal05' >"+value+"</a>";
                }
            },
            {
                title: "产品名称",
                field: "productName"
            },
            {
                title: "用途类型",
                field: "type",
                formatter:function (value) {
                    if (value=="Y001-1"){
                        return "商品";
                    }else
                    if (value=="Y001-2"){
                        return "物料";
                    }
                }
            },
            {
                title: "I分类",
                field: "firstKindName",
            },
            {
                title: "II分类",
                field: "secondKindName",
            },
            {
                title: "III分类",
                field: "thirdKindName",
            },

            {
                title: "产品经理",
                field: "responsiblePerson",
                formatter:function (value) {
                    if (value==0){
                        return "无";
                    }else {
                        return value;
                    }
                }
            },
            {
                title: "变更",
                field: "",
                formatter:function (value,row,index) {

                    return"<button onclick='updatebyId("+row.id+")'  class='btn btn-default' data-toggle='modal' data-target='#myModal04'><b>变更产品档案</b></button>";
                }
            }
        ]
    };
    $("#flan").bootstrapTable(params);
    $("#qur").click(function () {
        //刷新表格数据
        $("#flan").bootstrapTable("refresh");
        setTimeout(function () {
            $("#form_bar").resetForm();
        },5000)
    })
    //修改触发
    function updatebyId(id) {
        $.get("${pageContext.request.contextPath}/dfilebyid02.action",{id:id},
            function (data) {
                console.log(data)
                //呵呵
                $("#hiddeid").val(id)
                $("#file_ch").val(data.fileChangeAmount)
                if (data.type=='Y001-1'){
                    $("#type_Y").val("商品")
                } if (data.type=='Y001-2'){
                    $("#type_Y").val("物料")
                }

                $("#REAL_Price").val(data.realCostPrice)
                $("#span03").text("档案编号:"+data.productId)
                $("#Y_name").val(data.factoryName)
                $("#T_name").val(data.productName)
                $("#t_Nick").val(data.productNick)
                $("#l_Unit").val(data.personalUnit)
                $("#l_Value").val(data.personalValue)
                $("#pr_Group").val(data.providerGroup)
                $("#l_Price").val(data.listPrice)
                $("#c_Price").val(data.costPrice)
                $("#w_ty").val(data.warranty)
                $("#win_Name").val(data.twinName)
                $("#tw_Id").val(data.twinId)
                $("#li_ycle").val(data.lifecycle)
                $("#am_Unit").val(data.amountUnit)
                $("#pr_Describe").val(data.productDescribe)
                $("#rei_d").val(data.register)

                $("#RESPO_PERSON option").each(function () {
                    if ($(this).val()==data.responsiblePerson){
                        $(this).attr("selected","selected")
                    }
                })
                $("#CLA_SSD option").each(function () {
                    if ($(this).val()==data.productClass){
                        $(this).attr("selected","selected")
                    }
                })
                //$("select").each(function (index,item) {
                $("#FIRST_01 option").each(function () {
                    if ($(this).text()==data.firstKindName){
                        $(this).attr("selected","selected")
                        $("#FIRST_02>option:gt(0)").remove()
                        $("#FIRST_03>option:gt(0)").remove()
                        var fir=$(this).val()
                        sele_2(fir.substring(2),fir.substring(0,2))
                    }
                })
                setTimeout(function () {
                    $("#FIRST_02 option").each(function () {
                        if ($(this).text()==data.secondKindName){
                            $(this).attr("selected","selected")
                            $("#FIRST_03>option:gt(0)").remove()
                            var fir=$(this).val()
                            sele_3(fir.substring(2),fir.substring(0,2))

                            setTimeout(function () {
                                $("#FIRST_03 option").each(function () {
                                    if ($(this).text()==data.thirdKindName){
                                        $(this).attr("selected","selected")
                                        var fir=$(this).val()
                                    }
                                })
                            },200)
                        }
                    })
                },100)


                //当点击变更时触发
                $(document).ready(function () {
                    var starDate =new Date();
                    $("#date03").val(starDate.getFullYear()
                        +"-"+starDate.getMonth()+1
                        +"-"+starDate.getDate()
                        +" "+starDate.getHours()
                        +":"+starDate.getMinutes()
                        +":"+starDate.getSeconds()
                    )
                })

            },"json")
    }

    //第二张表的业务
    function aclick(id){
        $.get("${pageContext.request.contextPath}/dfilebyid03.action",{id:id},
            function (data) {
                $("#REALPrice").val(data.realCostPrice)
                $("#span0_4").text("档案编号:"+data.productId)
                $("#Yname").val(data.factoryName)
                $("#Tname").val(data.productName)
                $("#tNick").val(data.productNick)
                $("#lUnit").val(data.personalUnit)
                $("#lValue").val(data.personalValue)
                $("#prGroup").val(data.providerGroup)
                $("#lPrice").val(data.listPrice)
                $("#cPrice").val(data.costPrice)
                $("#wty").val(data.warranty)
                $("#winName").val(data.twinName)
                $("#twId").val(data.twinId)
                $("#liycle").val(data.lifecycle)
                $("#amUnit").val(data.amountUnit)
                $("#prDescribe").val(data.productDescribe)
                $("#reid").val(data.register)
                $("#FIRST01").val(data.firstKindName)
                $("#FIRST02").val(data.secondKindName)
                $("#FIRST03").val(data.thirdKindName)
                $("#RESPOPERSON").val(data.responsiblePerson)
                $("#filech").val(data.fileChangeAmount)
                if (data.productClass=="D001-1"){
                    $("#CLASSD").val("高档")
                }
                if (data.productClass=="D001-2"){
                    $("#CLASSD").val("中档")
                }
                if (data.productClass=="D001-3"){
                    $("#CLASSD").val("低档")
                }
                if (data.type=='Y001-1'){
                    $("#typeY").val("商品")
                } if (data.type=='Y001-2'){
                    $("#typeY").val("物料")
                }
                $("#date_03").val(data.checkTime)
                $("#jddate").val(data.registerTime)
                if (data.changeTag=="D002-1"){
                    $("#zjdate").val(data.changeTime)
                }
                    if (data.changeTag=="D002-0"){
                        $("#zjdate").val("未变更")
                    }
                if (data.fileChangeAmount==null){
                    $("#fileChangeAmount").val(0);
                }else {
                    $("#fileChangeAmount").val(data.fileChangeAmount);
                }



            }
        )

    }

    sele_1(0)
    //获取下拉框值
    function sele_1(pId){
        var pId={pId:pId};
        $.get("${pageContext.request.contextPath}/queryPull05.action",
            pId,
            function (data) {
                console.log(data)
                //循环
                $(data).each(function (index,item) {
                    var option=$("<option value='"+item.kindId+""+item.id+"'>"+item.kindName+"</option>")
                    $("#FIRST_01").append(option)

                })
                $("#FIRST_01").blur(function () {
                    $("#FIRST_02>option:gt(0)").remove()
                    $("#FIRST_03>option:gt(0)").remove()
                    var fir=$("#FIRST_01").val()
                    sele_2(fir.substring(2),fir.substring(0,2))
                })

            }),'json'
    }


    //第二个下拉框
    function sele_2(pId,kindId){
        var dco={pId:pId,kindId:kindId};
        $.get("${pageContext.request.contextPath}/queryPull05.action",
            dco,
            function (data) {
                console.log(data)
                //循环
                $("#IIselect01>option:gt(0)").remove()

                $(data).each(function (index, item) {
                    var option = $("<option value='"+item.kindId+""+item.id+"'>" + item.kindName + "</option>")
                    $("#FIRST_02").append(option)
                })
                $("#FIRST_02").blur(function () {
                    var fir=$("#FIRST_02").val()
                    sele_3(fir.substring(2),fir.substring(0,2))
                })

            }),'json'
    }

    //第三个下拉框
    function sele_3(pId,kindId){
        var dco={pId:pId,kindId:kindId};
        $.get("${pageContext.request.contextPath}/queryPull05.action",
            dco,
            function (data) {
                console.log(data)
                //循环
                $(data).each(function (index, item) {
                    $("#FIRST_03>option:gt(0)").remove()
                    var option = $("<option value='"+item.kindId+""+item.id+"'>" + item.kindName + "</option>")
                    $("#FIRST_03").append(option)
                })

            }),'json'
    }



    //查询下拉框
    sele_01(0)
    //获取下拉框值
    function sele_01(pId){
        var pId={pId:pId};
        $.get("${pageContext.request.contextPath}/queryPull04.action",
            pId,
            function (data) {
                console.log(data)
                //循环
                $(data).each(function (index,item) {
                    var option=$("<option value='"+item.kindId+""+item.id+"'>"+item.kindName+"</option>")
                    $("#Iselect01").append(option)

                })
                $("#Iselect01").blur(function () {
                    $("#IIselect01>option:gt(0)").remove()
                    $("#IIIselect01>option:gt(0)").remove()
                    var fir=$("#Iselect01").val()
                    sele_02(fir.substring(2),fir.substring(0,2))
                })

            }),'json'
    }


    //第二个下拉框
    function sele_02(pId,kindId){
        var dco={pId:pId,kindId:kindId};
        $.get("${pageContext.request.contextPath}/queryPull04.action",
            dco,
            function (data) {
                console.log(data)
                //循环
                $("#IIselect01>option:gt(0)").remove()
                $(data).each(function (index, item) {
                    var option = $("<option value='"+item.kindId+""+item.id+"'>" + item.kindName + "</option>")
                    $("#IIselect01").append(option)
                })
                $("#IIselect01").blur(function () {
                    var fir=$("#IIselect01").val()
                    sele_03(fir.substring(2),fir.substring(0,2))
                })

            }),'json'
    }

    //第三个下拉框
    function sele_03(pId,kindId){
        var dco={pId:pId,kindId:kindId};
        $.get("${pageContext.request.contextPath}/queryPull04.action",
            dco,
            function (data) {
                console.log(data)
                //循环
                $(data).each(function (index, item) {
                    $("#FIRST_KIND_ID_03>option:gt(0)").remove()
                    var option = $("<option value='"+item.kindId+""+item.id+"'>" + item.kindName + "</option>")
                    $("#IIIselect01").append(option)
                })

            }),'json'
    }

    //提交
    setTimeout(function () {

        $(function () {
            var param01= {
                messages: {

                    FIRST_01:{
                        "required": "请选择"
                    },
                    FIRST_02:{
                        "required": "请选择"
                    },
                    FIRST_03:{
                        "required": "请选择"
                    }
                },
                submitHandler: function (form) {
                    //需要组装数据
                    var I=$("#FIRST_01").val();
                    var II=$("#FIRST_02").val();
                    var III=$("#FIRST_03").val();
                    var param02 = {
                        url:"${pageContext.request.contextPath}/updatebyDFile01.action",
                        data:{
                            firstKindId:I.substring(0,2),
                            secondKindId:II.substring(0,2),
                            thirdKindId:III.substring(0,2),
                            id:$("#hiddeid").val(),
                            fileChangeAmount:$("#file_ch").val(),
                            firstKindName:$("#FIRST_01 option:selected").text(),
                            secondKindName:$("#FIRST_02 option:selected").text(),
                            thirdKindName:$("#FIRST_03 option:selected").text(),
                            productClass:$("#CLA_SSD").val(),
                            responsiblePerson:$("#RESPO_PERSON").val(),
                            changeTime:$("#date03").val(),
                        },
                        dataType:'json',
                        success:function (data) {
                            alert(data.msg)
                            //当添加成功后重置所以数据
                            // if (data.code==1){
                            //     $("#fo_rm").resetForm();
                            //
                            // }
                        }
                    }
                    $("#fo_rm").ajaxSubmit(param02);
                }
            }
            $("#fo_rm").validate(param01);
        })
        $("#myModal04").modal("hide")
    },100)




</script>
</body>
</html>

</body>
</html>
